package com.woniuxy.SpringAOP;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test {
    @org.junit.Test
    public void test(){
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationContext.xml");
        ShiXianLei gongChang = applicationContext.getBean("GongChang", ShiXianLei.class);
        gongChang.jia();
    }
}
